package com.heima.admin.controller.v1;


import com.heima.admin.service.AdminService;
import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmLoginDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class LoginController {

    @Autowired
    private AdminService adminService;

    @PostMapping("/login/in")
    public ResponseResult login(@RequestBody AdUserDto dto){
        return adminService.login(dto);
    }
}
